<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>tinydtls: alert.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">tinydtls
   &#160;<span id="projectnumber">0.8.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">alert.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="alert_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* alert.h -- DTLS alert protocol</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 2012 Olaf Bergmann &lt;bergmann@tzi.org&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * obtaining a copy of this software and associated documentation</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * files (the &quot;Software&quot;), to deal in the Software without</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * restriction, including without limitation the rights to use, copy,</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * modify, merge, publish, distribute, sublicense, and/or sell copies</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * of the Software, and to permit persons to whom the Software is</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * furnished to do so, subject to the following conditions:</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * included in all copies or substantial portions of the Software.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * SOFTWARE.</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef _DTLS_ALERT_H_</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _DTLS_ALERT_H_</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871f">   34</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871fa0f670b55dcb4ab291b869827d3c62ee7">   35</a></span>&#160;  <a class="code" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871fa0f670b55dcb4ab291b869827d3c62ee7">DTLS_ALERT_LEVEL_WARNING</a>=1,</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871fabd07bcf63c24aa5f1b9706a4197ceaf4">   36</a></span>&#160;  <a class="code" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871fabd07bcf63c24aa5f1b9706a4197ceaf4">DTLS_ALERT_LEVEL_FATAL</a>=2</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;} <a class="code" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871f">dtls_alert_level_t</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbd">   39</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda6bbae4f2f3747af4cdbe80c4a1061800">   40</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda6bbae4f2f3747af4cdbe80c4a1061800">DTLS_ALERT_CLOSE_NOTIFY</a> = 0,          <span class="comment">/* close_notify */</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda7b9032725373912bd7fda54af8704d8a">   41</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda7b9032725373912bd7fda54af8704d8a">DTLS_ALERT_UNEXPECTED_MESSAGE</a> = 10,       <span class="comment">/* unexpected_message */</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda4005b89a3396b23037f8033b29268eca">   42</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda4005b89a3396b23037f8033b29268eca">DTLS_ALERT_BAD_RECORD_MAC</a> = 20,       <span class="comment">/* bad_record_mac */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdad4d94666f310fb6982c26c70eddd6d12">   43</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdad4d94666f310fb6982c26c70eddd6d12">DTLS_ALERT_RECORD_OVERFLOW</a> = 22,      <span class="comment">/* record_overflow */</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaaf4ca9003cf380ae80a46b925b482888">   44</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaaf4ca9003cf380ae80a46b925b482888">DTLS_ALERT_DECOMPRESSION_FAILURE</a> = 30,    <span class="comment">/* decompression_failure */</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaea5ed33e912421eb48afb73ce0a6014d">   45</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaea5ed33e912421eb48afb73ce0a6014d">DTLS_ALERT_HANDSHAKE_FAILURE</a> = 40,        <span class="comment">/* handshake_failure */</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaaf5d5f80170bcf70000c18876e7bdb5c">   46</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaaf5d5f80170bcf70000c18876e7bdb5c">DTLS_ALERT_BAD_CERTIFICATE</a> = 42,      <span class="comment">/* bad_certificate */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda0de27a30ca57e1a93a066e8dc6b6beab">   47</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda0de27a30ca57e1a93a066e8dc6b6beab">DTLS_ALERT_UNSUPPORTED_CERTIFICATE</a> = 43,  <span class="comment">/* unsupported_certificate */</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda2e000f966c0ff01cf198ea862aa5cfe1">   48</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda2e000f966c0ff01cf198ea862aa5cfe1">DTLS_ALERT_CERTIFICATE_REVOKED</a> = 44,      <span class="comment">/* certificate_revoked */</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda845dc73ad17d0fb919489cc110633782">   49</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda845dc73ad17d0fb919489cc110633782">DTLS_ALERT_CERTIFICATE_EXPIRED</a> = 45,      <span class="comment">/* certificate_expired */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda450355820da8d9eff4dd6d17eb52585d">   50</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda450355820da8d9eff4dd6d17eb52585d">DTLS_ALERT_CERTIFICATE_UNKNOWN</a> = 46,      <span class="comment">/* certificate_unknown */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda880948aace26b2da8acde4c29ababcfc">   51</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda880948aace26b2da8acde4c29ababcfc">DTLS_ALERT_ILLEGAL_PARAMETER</a> = 47,        <span class="comment">/* illegal_parameter */</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaf8b7bd9f8a6c02080f4b1af566bc1a2f">   52</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaf8b7bd9f8a6c02080f4b1af566bc1a2f">DTLS_ALERT_UNKNOWN_CA</a> = 48,           <span class="comment">/* unknown_ca */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdad86305f8c32e7600fcafc0abcedd0a11">   53</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdad86305f8c32e7600fcafc0abcedd0a11">DTLS_ALERT_ACCESS_DENIED</a> = 49,        <span class="comment">/* access_denied */</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdae3249841cb226881ce6dadffb9f22649">   54</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdae3249841cb226881ce6dadffb9f22649">DTLS_ALERT_DECODE_ERROR</a> = 50,         <span class="comment">/* decode_error */</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda56a136f4d20b3ce9fb967eedb37371e0">   55</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda56a136f4d20b3ce9fb967eedb37371e0">DTLS_ALERT_DECRYPT_ERROR</a> = 51,        <span class="comment">/* decrypt_error */</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaa392c9a6bb02b01386a1c34dc1947652">   56</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaa392c9a6bb02b01386a1c34dc1947652">DTLS_ALERT_PROTOCOL_VERSION</a> = 70,     <span class="comment">/* protocol_version */</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda2cc56008c097883058c0e2e8ecc6751e">   57</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda2cc56008c097883058c0e2e8ecc6751e">DTLS_ALERT_INSUFFICIENT_SECURITY</a> = 71,    <span class="comment">/* insufficient_security */</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda22948f7c825b68cc18c79bd3634c8f58">   58</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda22948f7c825b68cc18c79bd3634c8f58">DTLS_ALERT_INTERNAL_ERROR</a> = 80,       <span class="comment">/* internal_error */</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda98631510b0a19a786fb4bc896ed37638">   59</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda98631510b0a19a786fb4bc896ed37638">DTLS_ALERT_USER_CANCELED</a> = 90,        <span class="comment">/* user_canceled */</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda8939a5d1777bf0dbdd8fa44e335137ab">   60</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda8939a5d1777bf0dbdd8fa44e335137ab">DTLS_ALERT_NO_RENEGOTIATION</a> = 100,        <span class="comment">/* no_renegotiation */</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda8512357ac6a83788ea76feb2ed9e2efc">   61</a></span>&#160;  <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda8512357ac6a83788ea76feb2ed9e2efc">DTLS_ALERT_UNSUPPORTED_EXTENSION</a> = 110    <span class="comment">/* unsupported_extension */</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;} <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbd">dtls_alert_t</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="alert_8h.html#aec2aa0683b1a39b4b1abba357b06f844">   64</a></span>&#160;<span class="preprocessor">#define DTLS_EVENT_CONNECT        0x01DC </span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="alert_8h.html#a5bed06f27f571d7c7d9b9f212c3a0b22">   65</a></span>&#160;<span class="preprocessor">#define DTLS_EVENT_CONNECTED      0x01DE </span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#define DTLS_EVENT_RENEGOTIATE    0x01DF </span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">static inline int</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor"></span><a class="code" href="alert_8h.html#a4242f419ffdd4b83bfaa2a0935ed2b6d">dtls_alert_create</a>(<a class="code" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871f">dtls_alert_level_t</a> level, <a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbd">dtls_alert_t</a> desc)</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="alert_8h.html#a4242f419ffdd4b83bfaa2a0935ed2b6d">   71</a></span>&#160;{</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="keywordflow">return</span> -((level &lt;&lt; 8) | desc);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;}</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<a class="code" href="alert_8h.html#a9b9a52e7d4bb621be12878c7dfc8f5df">dtls_alert_fatal_create</a>(<a class="code" href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbd">dtls_alert_t</a> desc)</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="alert_8h.html#a9b9a52e7d4bb621be12878c7dfc8f5df">   77</a></span>&#160;{</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="alert_8h.html#a4242f419ffdd4b83bfaa2a0935ed2b6d">dtls_alert_create</a>(<a class="code" href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871fabd07bcf63c24aa5f1b9706a4197ceaf4">DTLS_ALERT_LEVEL_FATAL</a>, desc);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;}</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _DTLS_ALERT_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdaea5ed33e912421eb48afb73ce0a6014d"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaea5ed33e912421eb48afb73ce0a6014d">DTLS_ALERT_HANDSHAKE_FAILURE</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00045">alert.h:45</a></div></div>
<div class="ttc" id="alert_8h_html_a9b9a52e7d4bb621be12878c7dfc8f5df"><div class="ttname"><a href="alert_8h.html#a9b9a52e7d4bb621be12878c7dfc8f5df">dtls_alert_fatal_create</a></div><div class="ttdeci">static int dtls_alert_fatal_create(dtls_alert_t desc)</div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00077">alert.h:77</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda98631510b0a19a786fb4bc896ed37638"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda98631510b0a19a786fb4bc896ed37638">DTLS_ALERT_USER_CANCELED</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00059">alert.h:59</a></div></div>
<div class="ttc" id="alert_8h_html_ab6264d1b950719f1c2e00b122cad871fabd07bcf63c24aa5f1b9706a4197ceaf4"><div class="ttname"><a href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871fabd07bcf63c24aa5f1b9706a4197ceaf4">DTLS_ALERT_LEVEL_FATAL</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00036">alert.h:36</a></div></div>
<div class="ttc" id="alert_8h_html_ab6264d1b950719f1c2e00b122cad871fa0f670b55dcb4ab291b869827d3c62ee7"><div class="ttname"><a href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871fa0f670b55dcb4ab291b869827d3c62ee7">DTLS_ALERT_LEVEL_WARNING</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00035">alert.h:35</a></div></div>
<div class="ttc" id="alert_8h_html_ab6264d1b950719f1c2e00b122cad871f"><div class="ttname"><a href="alert_8h.html#ab6264d1b950719f1c2e00b122cad871f">dtls_alert_level_t</a></div><div class="ttdeci">dtls_alert_level_t</div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00034">alert.h:34</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda845dc73ad17d0fb919489cc110633782"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda845dc73ad17d0fb919489cc110633782">DTLS_ALERT_CERTIFICATE_EXPIRED</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00049">alert.h:49</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda6bbae4f2f3747af4cdbe80c4a1061800"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda6bbae4f2f3747af4cdbe80c4a1061800">DTLS_ALERT_CLOSE_NOTIFY</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00040">alert.h:40</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda450355820da8d9eff4dd6d17eb52585d"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda450355820da8d9eff4dd6d17eb52585d">DTLS_ALERT_CERTIFICATE_UNKNOWN</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00050">alert.h:50</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda8939a5d1777bf0dbdd8fa44e335137ab"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda8939a5d1777bf0dbdd8fa44e335137ab">DTLS_ALERT_NO_RENEGOTIATION</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00060">alert.h:60</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda7b9032725373912bd7fda54af8704d8a"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda7b9032725373912bd7fda54af8704d8a">DTLS_ALERT_UNEXPECTED_MESSAGE</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00041">alert.h:41</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda22948f7c825b68cc18c79bd3634c8f58"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda22948f7c825b68cc18c79bd3634c8f58">DTLS_ALERT_INTERNAL_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00058">alert.h:58</a></div></div>
<div class="ttc" id="alert_8h_html_a4242f419ffdd4b83bfaa2a0935ed2b6d"><div class="ttname"><a href="alert_8h.html#a4242f419ffdd4b83bfaa2a0935ed2b6d">dtls_alert_create</a></div><div class="ttdeci">static int dtls_alert_create(dtls_alert_level_t level, dtls_alert_t desc)</div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00071">alert.h:71</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda0de27a30ca57e1a93a066e8dc6b6beab"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda0de27a30ca57e1a93a066e8dc6b6beab">DTLS_ALERT_UNSUPPORTED_CERTIFICATE</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00047">alert.h:47</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdaf8b7bd9f8a6c02080f4b1af566bc1a2f"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaf8b7bd9f8a6c02080f4b1af566bc1a2f">DTLS_ALERT_UNKNOWN_CA</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00052">alert.h:52</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdae3249841cb226881ce6dadffb9f22649"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdae3249841cb226881ce6dadffb9f22649">DTLS_ALERT_DECODE_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00054">alert.h:54</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdad4d94666f310fb6982c26c70eddd6d12"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdad4d94666f310fb6982c26c70eddd6d12">DTLS_ALERT_RECORD_OVERFLOW</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00043">alert.h:43</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda8512357ac6a83788ea76feb2ed9e2efc"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda8512357ac6a83788ea76feb2ed9e2efc">DTLS_ALERT_UNSUPPORTED_EXTENSION</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00061">alert.h:61</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbd"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbd">dtls_alert_t</a></div><div class="ttdeci">dtls_alert_t</div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00039">alert.h:39</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda4005b89a3396b23037f8033b29268eca"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda4005b89a3396b23037f8033b29268eca">DTLS_ALERT_BAD_RECORD_MAC</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00042">alert.h:42</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda2e000f966c0ff01cf198ea862aa5cfe1"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda2e000f966c0ff01cf198ea862aa5cfe1">DTLS_ALERT_CERTIFICATE_REVOKED</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00048">alert.h:48</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdaaf5d5f80170bcf70000c18876e7bdb5c"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaaf5d5f80170bcf70000c18876e7bdb5c">DTLS_ALERT_BAD_CERTIFICATE</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00046">alert.h:46</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda56a136f4d20b3ce9fb967eedb37371e0"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda56a136f4d20b3ce9fb967eedb37371e0">DTLS_ALERT_DECRYPT_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00055">alert.h:55</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdaa392c9a6bb02b01386a1c34dc1947652"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaa392c9a6bb02b01386a1c34dc1947652">DTLS_ALERT_PROTOCOL_VERSION</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00056">alert.h:56</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdad86305f8c32e7600fcafc0abcedd0a11"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdad86305f8c32e7600fcafc0abcedd0a11">DTLS_ALERT_ACCESS_DENIED</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00053">alert.h:53</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbdaaf4ca9003cf380ae80a46b925b482888"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbdaaf4ca9003cf380ae80a46b925b482888">DTLS_ALERT_DECOMPRESSION_FAILURE</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00044">alert.h:44</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda2cc56008c097883058c0e2e8ecc6751e"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda2cc56008c097883058c0e2e8ecc6751e">DTLS_ALERT_INSUFFICIENT_SECURITY</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00057">alert.h:57</a></div></div>
<div class="ttc" id="alert_8h_html_a41c9f2d4035bc6bf5a0f437842a9ecbda880948aace26b2da8acde4c29ababcfc"><div class="ttname"><a href="alert_8h.html#a41c9f2d4035bc6bf5a0f437842a9ecbda880948aace26b2da8acde4c29ababcfc">DTLS_ALERT_ILLEGAL_PARAMETER</a></div><div class="ttdef"><b>Definition:</b> <a href="alert_8h_source.html#l00051">alert.h:51</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 27 2015 15:15:33 for tinydtls by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
